package com.tanhua.dubbo.api;

import com.tanhua.model.domain.mongo.Comment;
import com.tanhua.model.domain.CommentType;

import java.util.List;

/**
 * @author lk
 * @date 2022-03-28
 */
public interface CommentApi {
    //分页查询
    List<Comment> findComments(String movementId, Integer page, Integer pagesize, CommentType comment);

    Integer save(Comment com);

    Boolean hasComment(String movementId, Long userId, CommentType type);

    Integer delete(Comment comment);


    Boolean findComment(String id, Long userId, CommentType like);

    Integer saveComment(Comment com);

    Integer deleteComment(Comment comment);

    List<Comment> findCommentLove(Integer page, Integer pagesize, Long userId, CommentType love);
}
